package com.yonyougov.devops.cruxcisupport.envserver.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Data
@ApiModel(value = "环境关联服务器修改")
public class EnvServerUpdRequestDto {

    @NotNull
    @ApiModelProperty(required = true, value = "主键id")
    private BigInteger id;

    @NotNull
    @ApiModelProperty(required = true, value = "是否是主节点")
    private Boolean master;

    @NotNull
    @ApiModelProperty(required = true, value = "服务器序号")
    private Integer idx;

}
